<?php
/**
 * Created by PhpStorm.
 * User: 15519
 * Date: 2019/2/11
 * Time: 20:50
 */

namespace app\admin\validate;


use think\Validate;

class Rule extends Validate
{
    // 验证规则
    protected $rule = [
        'name' => ['require', 'min' => 2, 'max' => 25]


    ];


    // 提示信息
    protected $message = [
        'name.require' => '权限名必须填写!!!!!',
        'name.min' => '权限名过短',
        'name.max' => '权限名过长',

    ];
}